package com.sos.core.game.events 
{
	
	import com.sos.core.game.Game;
	import com.sos.core.game.GamePhase;
	import com.sos.core.game.GameTurn;
	
	public class GameResolvePlayPhaseEvent extends GamePhaseEvent
	{
		
		// -------------------------------------------------------------------------------
		// FIELDS
		// -------------------------------------------------------------------------------
		
		private var _turn:GameTurn;
		
		// -------------------------------------------------------------------------------
		// CONSTRUCTOR
		// -------------------------------------------------------------------------------
		
		/**
		 * Creates a new GameResolvePhaseEvent 
		 * @param g Game that dispatch the event
		 * @param gTurn Data and list of the effectes caused by the turn resolution
		 */
		public function GameResolvePlayPhaseEvent(g:Game, gTurn:GameTurn)
		{
			super(GameEvent.EVENT_GAME_RESOLVE_PLAY_PHASE, g, GamePhase.RESOLVE_PLAY);
			// Init
			_turn = gTurn;
		}
		
		// -------------------------------------------------------------------------------
		// PROPERTIES
		// -------------------------------------------------------------------------------

		public function get turn():GameTurn
		{
			return _turn;
		}

	}
}